# $Id$

"""
RaidRank.py
-----------


"""
__author__ = 'Pat Smith <pat@waldosmith.com>'
__docformat__ = 'restructuredtext en'
__version__ = '$Revision$'[11:2]


class RaidResult(object):
    def __init__(self, raid):
        self.raid = raid
        self.ranks = []
        self.suicides = []
        self.greeds = []

    def __cmp__(self, other):
        if isinstance(other, int):
            return cmp(self.raid.pk, other)
        if isinstance(other, unicode):
            return cmp (self.raid.pk, int(other))
        return cmp(self.raid.pk, other.raid.pk)
    def getId(self):
        return self.raid.pk


